<?php

/*** error reporting on ***/
error_reporting(E_ALL);
date_default_timezone_set("Europe/London");
ini_set('display_errors', '1');

 /*** define the site path constant ***/
 $site_path = realpath(dirname(__FILE__));
 define ('__SITE_PATH', $site_path);

 /*** include the init.php file ***/
 include 'includes/init.php';
 
 
 /*** load the router ***/
 $registry->router = new router($registry);
 
  /*** set the path to the controllers directory ***/
 $router->setPath (__SITE_PATH . 'controller');
